﻿using DIS.WindowsPhone.Toolkit;

namespace PhoneApp1
{
    public class Settings : SettingsManager
    {
        public bool SomeBoolean
        {
            get
            {
                return GetValueOrDefault<bool>("SomeBoolean", false);
            }
            set
            {
                AddOrUpdateValue("SomeBoolean", value);
                Save();
            }
        }

        public string SomeString
        {
            get
            {
                return GetValueOrDefault<string>("SomeString", "hello world!");
            }
            set
            {
                AddOrUpdateValue("SomeString", value);
                Save();
            }
        }

        public int SomeNumber
        {
            get
            {
                return GetValueOrDefault<int>("SomeNumber", 123);
            }
            set
            {
                AddOrUpdateValue("SomeNumber", value);
                Save();
            }
        }
    }
}
